<?php
// +----------------------------------------------------------------------
// | 海豚PHP框架 [ DolphinPHP ]
// +----------------------------------------------------------------------
// | 版权所有 2016~2019 广东卓锐软件有限公司 [ http://www.zrthink.com ]
// +----------------------------------------------------------------------
// | 官方网站: http://dolphinphp.com
// +----------------------------------------------------------------------

namespace app\api\validate;



/**
 * 提交表单验证
 * @package app\userInfo\validate
 */
class UserInfoValidate extends BaseValidate
{

    public $rule = [
        'name' => 'require',
        'sex' => 'require',
        'phone' => 'require|isMobile',
        'email' => 'require|isEmail',
        'wechat_num' => 'require',
        'is_live_experience' => 'require',
        'live_intention' => 'require',
        'is_full_time' => 'require',
        'is_base_device' => 'require',
        'partition' => 'require',
        'expose_plan' => 'require',
        'week_days' => 'require',
        'days_time_slot' => 'require',
        'is_media_num' => 'require',
        'is_okmai' => 'require',
        'self_info' => 'require',

    ];

    protected $message = [

        'name.require' => '请输入姓名',
        'sex.require' => '请选择性别',
        'phone.require' => '请输入手机号',
        'phone.isMobile' => '请输入正确手机号',
        'email.require' => '请输入电子邮箱',
        'email.isEmail' => '请输入正确邮箱',
        'wechat_num.require' => '请输入微信号',
        'is_live_experience.require' => '请选择是否有直播经验',
        'live_intention.require' => '请选择直播内容意向',
        'is_full_time.require' => '请选择全职OR兼职',
        'is_base_device.require' => '请选择是否具备直播基础设备',
        'partition.require' => '请选择直播分区',
        'expose_plan.require' => '请选择对直播露出的计划',
        'week_days.require' => '请选择每周可以用来直播的天数',
        'days_time_slot.require' => '请选择可开播的时长及时间段',
//        'is_media_num.require' => '请选择是否有外站自媒体账号',
//        'is_okmai.require' => '请选择是否为技术大神',
        'self_info.require' => '请输入个人简介',

    ];

    protected $scene = [

        'userInfoAdd' => [ 'name','sex','phone','email','wechat_num','is_live_experience','live_intention','is_full_time'
            ,'is_base_device','partition','expose_plan','week_days','days_time_slot','self_info'],//提交表单信息

    ];




}
